/**
 * @Author Fish Paradise
 * @Description
 * @Date 2019/1/22  9:59
 **/
public class Chief {
    private FruitBuilder fruitBuilder;
    public Chief(FruitBuilder fruitBuilder){
        this.fruitBuilder = fruitBuilder;
    }

    public void cooking(){
        System.out.println("先和面，做面饼");
        fruitBuilder.doBeforeCook();
        System.out.println("把水果放进去");
        fruitBuilder.doAfterCook();
        System.out.println("就这样算做好了吧");
    }
}
